import django.core.serializers.json
from django.db import migrations, models

import sysreptor.utils.crypto.fields


class Migration(migrations.Migration):

    dependencies = [
        ('pentests', '0024_project_member_role'),
    ]

    operations = [
        migrations.AddField(
            model_name='pentestfinding',
            name='custom_fields_new',
            field=sysreptor.utils.crypto.fields.EncryptedField(base_field=models.JSONField(default=dict, encoder=django.core.serializers.json.DjangoJSONEncoder), editable=True),
        ),
        migrations.AddField(
            model_name='pentestproject',
            name='custom_fields_new',
            field=sysreptor.utils.crypto.fields.EncryptedField(base_field=models.JSONField(default=dict, encoder=django.core.serializers.json.DjangoJSONEncoder), editable=True),
        ),
        migrations.AddField(
            model_name='pentestfinding',
            name='template_id_new',
            field=sysreptor.utils.crypto.fields.EncryptedField(base_field=models.UUIDField(blank=True, null=True), blank=True, editable=True, null=True),
        ),
        migrations.AddField(
            model_name='projecttype',
            name='report_preview_data_new',
            field=sysreptor.utils.crypto.fields.EncryptedField(base_field=models.JSONField(default=dict, encoder=django.core.serializers.json.DjangoJSONEncoder), editable=True),
        ),
        migrations.AddField(
            model_name='projecttype',
            name='report_styles_new',
            field=sysreptor.utils.crypto.fields.EncryptedField(base_field=models.TextField(default=''), editable=True),
        ),
        migrations.AddField(
            model_name='projecttype',
            name='report_template_new',
            field=sysreptor.utils.crypto.fields.EncryptedField(base_field=models.TextField(default=''), editable=True),
        ),
        migrations.AddField(
            model_name='uploadedasset',
            name='name_new',
            field=sysreptor.utils.crypto.fields.EncryptedField(base_field=models.CharField(max_length=255, default=''), editable=True),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='uploadedasset',
            name='name_hash',
            field=models.BinaryField(db_index=True, default=b'', max_length=32),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='uploadedimage',
            name='name_new',
            field=sysreptor.utils.crypto.fields.EncryptedField(base_field=models.CharField(max_length=255, default=''), editable=True),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='uploadedimage',
            name='name_hash',
            field=models.BinaryField(db_index=True, default=b'', max_length=32),
            preserve_default=False,
        ),
        migrations.AlterUniqueTogether(
            name='uploadedasset',
            unique_together=set(),
        ),
        migrations.AlterUniqueTogether(
            name='uploadedimage',
            unique_together=set(),
        ),
    ]
